package Leason3;

import java.util.Arrays;
import java.util.Scanner;

public class Task9 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
			System.out.println("Please enter a length of the array");
		int len = sc.nextInt();
		
		int[] array = new int[len];
		int num;
		
		
			System.out.println("Please enter the array numbers");
		for(int i = 0; i < array.length; i++)
		{
			System.out.println("Enter the number of element " + i);
			num = sc.nextInt();
			array[i] = num;
		}
		int a = len-1;
		int save = 0;
		for(int i = 0; i < array.length/2; i++)
		{
			save = array[a];   
			array[a] = array[i];
			array[i] = save;
			a--;
			
		}
		
		System.out.println("Reverse" + Arrays.toString(array));
		
	}

}
